extends Node2D


signal Strike

var _SD = 100
var _FX = 0

func move(fx : float):
	print("移动命令")
	_FX = fx
	


func _process(delta: float) -> void:
	position += Global._GongSu * Vector2(100,0) * delta


#接触
func _on_area_2d_body_entered(body: Node2D) -> void:
	print("接触了")
	queue_free()
	Strike.emit()

#出屏幕
func _on_visible_on_screen_notifier_2d_screen_exited() -> void:
	queue_free()
